import { GET_ALL_PERMISSION, GET_ALL_ROLE } from '@/store/role/CONST'
import { State } from '@/store/role/interface'

export default {
  [GET_ALL_PERMISSION] (state:State, data:[]) {
    state.permission = data
  },

  [GET_ALL_ROLE] (state:State, data:[]) {
    state.role = data
  }
}
